package com.example.order.feign;

import com.example.model.dto.Product;
import com.example.order.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-product",fallback = ProductFeignFallback.class)
public interface ProductFeignClient {

    @GetMapping("/product/get/{id}")
    Product getProduct(@PathVariable("id") String id);
}
